#pragma once
#include "Support.h"
USING_NS_CC;
using namespace CocosDenshion;

class LevelButton : public Node {
public:
	static LevelButton* createButton(int level);
	void unLock();
protected:
	bool initButton(int level);
private:
	int m_level;
	bool m_isLocked;
	Sprite *m_showSprite;

	bool isTouchedInside(Touch *pTouch);

	bool onTouchBegan(Touch *pTouch, Event *event);
	void onTouchMoved(Touch *pTouch, Event *event);
	void onTouchEnded(Touch *pTouch, Event *event);
};